﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SalaryKOG
{
    class ProcessDay
    {
        public static bool IsLeapYear(int year)
        {
            if (year%4 == 0)
                return true;
            else return false;
        }

        public static int GetThu(DateTime dateTime)
        {
            long sum, sumday;
            sumday = dateTime.DayOfYear;
            int year = dateTime.Year;
            sum = (year - 1) / 1 + ((year - 1) / 4 - (year - 1) / 100) + (year - 1) / 400 + sumday;
            sum = sum % 7;
            return (int)sum;
        }
    }
}
